import java.util.Vector;


public class Checker {

	private Vector<String> WordsIntoFile;
	private Vector<String> WordsIntoDictionary;
	private Vector<String> WordsIntoPrivatDictionary;
	private String InputWordsFile;
	private String InputWordsDictionary;
	private String InputWordsPrivDictionary;
	
	
	public Checker ( String InputWordsFile ) {
		while ( InputWordsFile.equals("") ) {
			System.out.print("Insert the file name: ( Ex - text.txt ) ");
			String InputWordsFile = Input.readLine();
		}
		InputWordsFile = InputWordsFile;
		WordsIntoFile = ExtractWordsFromFile(InputWordsFile, 1);
		WordsIntoDictionary = ExtractWordsFromFile(InputWordsDictionary, 1);
		WordsIntoPrivatDictionary = ExtractWordsFromFile(InputWordsPrivDictionary, 1);
	}
	
	public boolean CheckAllTheWords () {
		boolean Report = true;
		int i = 0;
		int RowPositionD1;
		int RowPositionD2;
		while ( i < WordsIntoFile.size() ) {
			RowPositionD1 = SeekWordIntoDictionary( WordsIntoFile.get(i), InputWordsDictionary );
			RowPositionD2 = SeekWordIntoDictionary( WordsIntoFile.get(i), InputWordsPrivDictionary );
			if ( RowPositionD1 = -1 || RowPositionD2 -1 ) {
				if ( WrongWord( WordsIntoFile.get(i), i ) ) {
					AskCorrectWord( Word, Position );
				}
			}
			i++;
		}
	}
}
